package com.cangxuan.app.entity;

import java.util.List;

public class MarketRequestParams {
    String searchKey; // 搜索关键字
    private int category;  // 分类字段： 1.推荐 2.新品 4.综合
    private int priceSort; // 价格排序 0升序 1降序
    private int releaseDateSort; //发行时间排序 0升序 1降序
    private List<Integer> issuers; //发行方
    private List<Integer>  series; //系列

    public MarketRequestParams(String searchKey, int category, int priceSort, int releaseDateSort, List<Integer> issuers, List<Integer> series) {
        this.searchKey = searchKey;
        this.category = category;
        this.priceSort = priceSort;
        this.releaseDateSort = releaseDateSort;
        this.issuers = issuers;
        this.series = series;
    }

    @Override
    public String toString() {
        return "MarketRequestParams{" +
                "searchKey='" + searchKey + '\'' +
                ", category=" + category +
                ", priceSort=" + priceSort +
                ", releaseDateSort=" + releaseDateSort +
                ", issuers=" + issuers +
                ", series=" + series +
                '}';
    }

    public String getSearchKey() {
        return searchKey;
    }

    public void setSearchKey(String searchKey) {
        this.searchKey = searchKey;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public int getPriceSort() {
        return priceSort;
    }

    public void setPriceSort(int priceSort) {
        this.priceSort = priceSort;
    }

    public int getReleaseDateSort() {
        return releaseDateSort;
    }

    public void setReleaseDateSort(int releaseDateSort) {
        this.releaseDateSort = releaseDateSort;
    }

    public List<Integer> getIssuers() {
        return issuers;
    }

    public void setIssuers(List<Integer> issuers) {
        this.issuers = issuers;
    }

    public List<Integer> getSeries() {
        return series;
    }

    public void setSeries(List<Integer> series) {
        this.series = series;
    }
}
